package com.zt.ztyh.service.open;

import com.zt.ztyh.vo.common.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author Java之父卫相阳
 * @date 2024/4/15 13:33
 * OverSion04
 */
@FeignClient(name = "user-function-bankcards", path = "/bankcards",contextId="card")
public interface CardService {
    /**
     * 充值余额
     * @param balance
     * @param cardnumber
     */
    @PutMapping("/account")
    public Result account(@RequestParam("balance")String balance, @RequestParam("cardnumber")String cardnumber);
    /**
     * 提现余额
     */
    @PutMapping("/chong")
    public Result chong(@RequestParam("balance")String balance,@RequestParam("cardnumber")String cardnumber);
    /**
     * 根据银行卡查询余额
     */
    @GetMapping("/balance")
    public Result balance(@RequestParam("cardnumber") String cardnumber);
}
